<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<script type="text/javascript">
<!--
function  ForDight(Dight,How)    
{    
   Dight  =  Math.round  (Dight*Math.pow(10,How))/Math.pow(10,How);    
   return  Dight;    
}
//-->
</script>
<?php $this->pageTitle="API PV统计"; ?>
<?php $form=$this->beginWidget('CActiveForm', array(
)); ?>
<div class="icon32" id="icon-users"><br>
</div>
<?php $arr = Yii::app()->params['helpDocument'];?>
<h2>API PV统计<a target="<?php echo $arr['target']?>" href="<?php echo $arr['pvStat']?>"><?php echo $arr['img']?></a></h2>
开始时间:
<?php Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
$this->widget('CJuiDateTimePicker',array(
        'model'=>$data,         'attribute'=>'startDate',         'mode'=>'date',         'options'=>array('dateFormat' => 'yy-mm-dd',  ) ));
?>
结束时间:
<?php Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
$this->widget('CJuiDateTimePicker',array(
        'model'=>$data,         'attribute'=>'endDate',         'mode'=>'date',         'options'=>array('dateFormat' => 'yy-mm-dd',  ) ));
?><?php echo CHtml::submitButton('查看统计',array("class"=>"button-primary")); ?>
<?php
foreach ($data->statData as $index=>$item){
	$this->Widget('ext.highcharts.HighchartsWidget', array(
   'options'=>$item
	));
}
?>
<?php $this->endWidget(); ?>